<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="copyright" content="闻康集团刘代明监制" />
<meta name="robots" content="all" />
{$css_file}
{$js_file}
<style type="text/css">
.regItem label.error {
	padding-left: 20px;
	background: url(__PUBLIC__/Images/admin/onError.gif) no-repeat;
}

.regItem label.correct {
	padding-left: 20px;
	background: url(__PUBLIC__/Images/admin/onCorrect.gif) no-repeat;
}
</style>
<script type="text/javascript">
//字段非空验证
function validate(form) {
    if (form.diettaboo.value == "") {
         alert("禁忌饮食不能为空！");
         form.diettaboo.focus();
         return false;
     }
    if (form.properdiet.value == "") {
         alert("适宜饮食不能为空！");
         form.properdiet.focus();
         return false;
     }
    return true;
}
</script>
</head>
<body>
	<div class="main">
		<div class="crumbs">
			当前位置：<span id="current_pos">面板->疾病饮食管理->添加疾病饮食禁忌</span>
		</div>
		<div class="m_content" id="right_main">
			<div class="content_menu blue line-x">
				<a class="on" href="__GROUP__/Disassistant/disFoodTaboo"><em>疾病饮食禁忌列表</em></a>
			</div>
			<form action="__GROUP__/Disassistant/addDisFoodTaboo" method="post" enctype="multipart/form-data" onsubmit="return validate(this);">
				<div class="tableform" id="tab_1">
					<h5>添加疾病饮食禁忌</h5>
					<div class="division">
						<table cellspacing="0" cellpadding="0" border="0"
							class="shop_config">
							<tbody>
								<tr class="regItem">
									<th>app名称：</th>
									<td>
									   <select name="appname">
									       <volist name='apps' id='vo'>
									           <option value="{$vo.id}">{$vo.appname}</option>
									       </volist>
									   </select>
									</td>
								</tr>
								<tr class="regItem">
									<th>禁忌饮食：</th>
									<td><textarea cols='80' rows='10' class="text" name="diettaboo"></textarea></td>
								</tr>
								<tr class="regItem">
									<th>适宜饮食：</th>
									<td><textarea cols='80' rows='10' class="text" name="properdiet"></textarea></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div style="text-align: center;">
					<input type="submit" class="button" value="确定 " name="submit" /> 
					<input type="reset" class="button" value="重置 " name="reset" />
				</div>
			</form>
		</div>
	</div>
</body>

</html>

